From a4059b231d30e0b1700978b8ad279c5a595ab33d Mon Sep 17 00:00:00 2001 From: robertl Date: Thu, 17 Jul 2003 03:26:40 +0000 Subject: [PATCH] Deliver useful error on unknown input type. git-svn-id: http://gpsbabel.googlecode.com/svn/trunk@421 f51c46e8-681c-474f-0cfe-069cfd0219fb --- gpsbabel/gpilots.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/gpsbabel/gpilots.c b/gpsbabel/gpilots.c index deeef5281..60db2ec29 100644 --- a/gpsbabel/gpilots.c +++ b/gpsbabel/gpilots.c @@ -282,7 +282,9 @@ data_read(void) route_add_wpt(track_head, wpt_tmp); tp++; } - + break; + default: + fatal(MYNAME ": input record type %d not supported.\n", rec->header.type); } #if 0 if ( be_read32(&rec->elevation) == -100000000 ) { -- 2.30.2